import { AssetacquisitionManageAPI } from '../common/type';

export const ModalSearchColumns = (assetType: any[]) => {
  const searchColumns: AssetacquisitionManageAPI.ISearchList = [
    {
      name: 'inventoryTitle',
      placeholder: '事项名称',
      label: '事项名称',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
      treeID: 'id',
      treeName: 'name',
      searchParams: {
        fieldType: 'String',
        fieldParam: 0,
        fieldUse: 0,
        searchType: 0,
        seq: 0,
      },
    },
    /**===============================高级搜素================================*/
    {
      name: 'createTime',
      placeholder: '申请',
      label: '申请',
      componentType: 'RangePicker',
      allowClear: true,
      md: 8,
      sm: 24,
      whetherSenior: false,
      searchParams: {
        fieldType: 'Date',
        fieldParam: 0,
        fieldUse: 0,
        searchType: 0,
        seq: 0,
      },
    },
  ];

  return searchColumns;
};
